﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Threading.Tasks;

namespace STF.OrangeDog.Model
{
    public class HSystemMenu:BaseModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(20), Column(TypeName = "varchar(20)")]
        [Display(Name = "菜单名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(20), Column(TypeName = "varchar(20)")]
        [Display(Name = "菜单链接")]
        public string Link { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "父级菜单编号")]
        public int ParentId { get; set; }
    }
}
